package com.ds.lens.data.vo.in;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


@Data
public class Page {

	@Min(value = 1, message = "size must be >= 1")
	@NotNull(message = "page size must be not null")
	private Integer size = 10;

	@Min(value = 1, message = "index must be >= 1")
	@NotNull(message = "page index must be not null")
	private Integer index = 0;
}
